package com.example.toutiao.db;


public class Article {
    private String title;
    private String content;
    private String time;  // 添加时间字段

    private String author;

    public Article(String author,String title, String content, String time) {
        this.title = title;
        this.content = content;
        this.time = time;  // 初始化时间
        this.author = author;  // 初始化时间
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    // getter 和 setter
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}

